#include <stdlib.h>
#include <stdio.h>

#define SOFTWARE_VERSION "0.1"

void usage()
{
	printf("To be done.\n");
}

int main(int argc, char** argv)
{
	int i = 0;

	printf("argc = %d:Line:%d\n",argc,__LINE__);
	for(i = 0; i < argc; ++i)
	{
		printf("argv[%d]=%s\n",i,argv[i]);
	}

	//parse option
	while (--argc > 0 && **++argv == '-') {
		while (*++*argv) {
			switch (**argv) {
				case 'v':
					printf("Version %s\r",SOFTWARE_VERSION);
					break;
				default:
					break;
			}
		}
	}

	printf("argc = %d:Line:%d\n",argc,__LINE__);
	if(argc == 0)
	{
		usage();
		return 0;
	}

	return 0;
}
